package com.shensi.appCollect.dao;

import com.shensi.appCollect.pojo.CustomerLabel;
import com.shensi.appCollect.pojo.LabelRule;
import com.shensi.appCollect.pojo.dto.LabelRuleDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LabelMapper {

    //获取油站标签规则
    List<LabelRule> getLabelRuleList(LabelRule labelRule);

    //获取油站标签用户列
    CustomerLabel getCustomerLabel(CustomerLabel customerLabel);

    //更新用户新标签组
    void updateCustomerLabel(CustomerLabel customerLabel);

    int updateIsPush(LabelRuleDto labelRuleDto);

    LabelRule queryLabelRuleById(Long LabelId);

    //新增标签用户
    void insertCustomerLabel(CustomerLabel customerLabel);

    List<CustomerLabel> getCustomerLabelList(CustomerLabel customerLabel);

    List<LabelRule> getLabelRuleByPhone(@Param("mobilePhone") String mobilePhone);

    LabelRule getLabelNameById(Integer labelId);
}
